package com.tianji.learning.utils;

import org.springframework.stereotype.Component;


public class TableNameContext {
    private final static ThreadLocal<String> TL = new ThreadLocal<>();

    public static void setTableName(String tableName){
        TL.set(tableName);
    }

    public static String getTableName(){
        return TL.get();
    }

    public static void remove(){
        TL.remove();
    }
}
